package config

import (
	"runtime"
	"sync/atomic"
)

var DownloadMaxWorkers atomic.Int32
var DownloadMaxRetries atomic.Int32
var DownloadBlockSize atomic.Int32

func initDownloadSetting() error {
	DownloadMaxWorkers.Store(int32(runtime.NumCPU()))
	DownloadMaxRetries.Store(3)
	DownloadBlockSize.Store(8 * 1024 * 1024)
	return nil
}
